/*
 * @Description: 微信小程序API接口
 * @Author: QianLong
 * @Date: 2019-07-07 19:06:52
 * @LastEditors    : QianLong
 * @LastEditTime   : 2023-09-14 14:18:21
 */
import http from '@/utils/http/axios'

export function getItemList(params) {
  return http.request({
    url: '/mp_miniapp/list',
    method: 'GET',
    params
  })
}
export function getAllItem(params) {
  return http.request({
    url: '/mp_miniapp/all_list',
    method: 'GET',
    params
  })
}
export function getDgLists(params) {
  return http.request({
    url: '/mp_miniapp/getDgList',
    method: 'GET',
    params
  })
}
export function getKeywordLists(params) {
  return http.request({
    url: '/mp_miniapp/getKeywordList',
    method: 'GET',
    params
  })
}
export function getSubLists(params) {
  return http.request({
    url: '/mp_miniapp/getSubList',
    method: 'GET',
    params
  })
}
export function getMenuLists(params) {
  return http.request({
    url: '/mp_miniapp/getMenuList',
    method: 'GET',
    params
  })
}
export function getAllMenu(params) {
  return http.request({
    url: '/mp_miniapp/get_all_mp_menu',
    method: 'GET',
    params
  })
}
export function getMediaLists(params) {
  return http.request({
    url: '/mp_miniapp/getMediaList',
    method: 'GET',
    params
  })
}
export function editData(params) {
  return http.request(
    {
      url: '/mp_miniapp/editItemInfo',
      method: 'POST',
      params
    },
    {
      isTransformRequestResult: false
    }
  )
}
export function pushMenuWeixin(params) {
  return http.request(
    {
      url: '/mp_miniapp/pushMenuWeixin',
      method: 'POST',
      params
    },
    {
      isTransformRequestResult: false
    }
  )
}
export function deleteMenuWeixin(params) {
  return http.request(
    {
      url: '/mp_miniapp/deleteMenuWeixin',
      method: 'POST',
      params
    },
    {
      isTransformRequestResult: false
    }
  )
}
export function editDataDg(params) {
  return http.request(
    {
      url: '/mp_miniapp/editDgInfo',
      method: 'POST',
      params
    },
    {
      isTransformRequestResult: false
    }
  )
}
export function editDataKeyword(params) {
  return http.request(
    {
      url: '/mp_miniapp/editKeywordInfo',
      method: 'POST',
      params
    },
    {
      isTransformRequestResult: false
    }
  )
}
export function editDataSub(params) {
  return http.request(
    {
      url: '/mp_miniapp/editSubInfo',
      method: 'POST',
      params
    },
    {
      isTransformRequestResult: false
    }
  )
}
export function editDataMenu(params) {
  return http.request(
    {
      url: '/mp_miniapp/editMenuInfo',
      method: 'POST',
      params
    },
    {
      isTransformRequestResult: false
    }
  )
}
export function asyncMedia(params) {
  return http.request(
    {
      url: '/mp_miniapp/asyncMedia',
      method: 'POST',
      params
    },
    {
      isTransformRequestResult: false
    }
  )
}
export function delArtItem(params) {
  return http.request(
    {
      url: '/mp_miniapp/delItem',
      method: 'POST',
      params
    },
    {
      isTransformRequestResult: false
    }
  )
}
export function delMediaItem(params) {
  return http.request(
    {
      url: '/mp_miniapp/delMediaItem',
      method: 'POST',
      params
    },
    {
      isTransformRequestResult: false
    }
  )
}
export function delMenuItem(params) {
  return http.request(
    {
      url: '/mp_miniapp/delMenuItem',
      method: 'POST',
      params
    },
    {
      isTransformRequestResult: false
    }
  )
}
export function useReplyContent(params) {
  return http.request(
    {
      url: '/mp_miniapp/useReply',
      method: 'POST',
      params
    },
    {
      isTransformRequestResult: false
    }
  )
}
export function useReplyContentDg(params) {
  return http.request(
    {
      url: '/mp_miniapp/useReplyDg',
      method: 'POST',
      params
    },
    {
      isTransformRequestResult: false
    }
  )
}
export function delKeywordItem(params) {
  return http.request(
    {
      url: '/mp_miniapp/delKeywordItem',
      method: 'POST',
      params
    },
    {
      isTransformRequestResult: false
    }
  )
}
export function delSubItem(params) {
  return http.request(
    {
      url: '/mp_miniapp/delSubItem',
      method: 'POST',
      params
    },
    {
      isTransformRequestResult: false
    }
  )
}
export function delDgItem(params) {
  return http.request(
    {
      url: '/mp_miniapp/delDgItem',
      method: 'POST',
      params
    },
    {
      isTransformRequestResult: false
    }
  )
}
export function addData(params) {
  return http.request(
    {
      url: '/mp_miniapp/editItemInfo',
      method: 'POST',
      params
    },
    {
      isTransformRequestResult: false
    }
  )
}
export function getItemInfo(params) {
  return http.request({
    url: '/mp_miniapp/editItemInfo',
    method: 'GET',
    params
  })
}
